package cn.wolfcode.wolf2w.service;


import cn.wolfcode.wolf2w.domain.TravelComment;
import cn.wolfcode.wolf2w.domain.UserInfo;
import cn.wolfcode.wolf2w.query.TravelCommentQuery;
import org.springframework.data.domain.Page;

import java.util.List;

/**
 * 攻略评论服务接口
 */
public interface ITravelCommentService {


    TravelComment get(String id);

    List<TravelComment> selectAll();

    Page<TravelComment> query(TravelCommentQuery qo);

    void update(TravelComment travel);

    void save(TravelComment travel);

    void deleteById(String id);

    void saveOrUpdate(TravelComment travel, UserInfo userInfo);

    List<TravelComment> comments(String travelId);

    void commentAdd(TravelComment travelComment, UserInfo userInfo);
}
